package com.landeb.shop.huo.httpRequest;

import com.landeb.shop.huo.bean.BeanActCreateOrderResult;
import com.landeb.shop.huo.bean.BeanFragOrderRequestPayNow;
import com.landeb.shop.huo.bean.BeanOrderFrag;
import com.landeb.shop.huo.bean.BeanStatusInfo;
import com.landeb.shop.huo.bean.BeanUserData;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by blade on 2016/11/24.
 */

public interface FragOrderRequest {

    @FormUrlEncoded
    @POST("User/order_list")
    Observable<BeanOrderFrag> getOrder(@Field("page") int page, @Field("limit") int limit, @Field("status") String status, @Field("is_comment") String is_comment);

    @FormUrlEncoded
    @POST("Order/cancel")
    Observable<BeanStatusInfo> cancelOrder(@Field("order_id") String order_id);

    @FormUrlEncoded
    @POST("Order/receive")
    Observable<BeanStatusInfo> ConfirmReceipt(@Field("order_id") String order_id);

    @FormUrlEncoded
    @POST("Order/gopay")
    Observable<BeanFragOrderRequestPayNow> payNow(@Field("order_id") String order_id);

}
